package com.example.customer;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

public record CustomerRegistryRequest(
        @NotBlank(message = "姓名不能为空")
        String name, @NotBlank(message = "email不能为空")
        @Email(message = "不是一个有效的email")
        String email) {
}
